import PopUp from "../PopUp";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Settings extends PopUp {

    @property(cc.Node)
    muteMark: cc.Node = null;

    onSoundBtnClicked() {
        this.audio.playCursor();
        this.audio.AudioSource.mute = !this.audio.AudioSource.mute;
        this.muteMark.active = this.audio.AudioSource.mute;
    }

    onRateBtnClicked() {
        this.audio.playCursor();
        window.open('https://canace.club/html/open-gc');
        this.hidePopUp();
    }

    onFacebookBtnClicked() {
        this.audio.playCursor();
        window.open('https://canace.club/html/open-gc');
        this.hidePopUp();
    }

    onTwitterBtnClicked() {
        this.audio.playCursor();
        window.open('https://canace.club/html/open-gc');
        this.hidePopUp();
    }
}
